//
//  BroadcastCell.m
//  LvXi_newVersion
//
//  Created by 王敏 on 16/8/12.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import "BroadcastCell.h"
@interface BroadcastCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nameMarginLeft;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *nameMarginRight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *noticeMarginLeft;

@end
@implementation BroadcastCell

-(void)awakeFromNib{
    [super awakeFromNib];
    self.cellHeight = 30.f;
    self.nameLabel.textColor = HexColor(@"#8B8A8A");
    self.nameLabel.font = [UIFont systemFontOfSize:ISBigScreen?12:11];
    self.broadcastView.height = self.cellHeight;
    self.broadcastView.messeges = @[@"传说中的APP1",@"传说中的APP2",@"传说中的APP3",@"传说中的APP4",@"传说中的APP5"];
    self.broadcastView.messegeFont = [UIFont systemFontOfSize:ISBigScreen?12:10];
    self.broadcastView.messegeColor = HexColor(@"#6BBA4D");
    self.broadcastView.frameInterval = 2.f;
    [self.broadcastView timerStart];
    [self resetConstrain];

}


/**重置约束*/
-(void)resetConstrain{
    self.nameMarginLeft.constant = Ratio_Home_Width(32.f);
    self.nameMarginRight.constant = self.noticeMarginLeft.constant = Ratio_Home_Width(83.f);
    self.noticeMarginLeft.constant = 10;
}

@end
